package com.jsmtr.rms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Base_MessageConfig")
public class BaseMessageConfig {

    @Id
    @Column(nullable = false)
    private Integer id; // ID

    @Column(nullable = false, length = 50)
    private String username; // 短信地址

    @Column(nullable = false, length = 50)
    private String password; // 登录密码

    @Column(nullable = false, length = 500)
    private String host; // 服务器

    @Column(nullable = true)
    private Integer port; // 端口号

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

}